package com.yixueyun.content.feigncient;

import com.yixueyun.content.config.MultipartSupportConfig;
import com.yixueyun.content.model.po.CourseIndex;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 *搜索远程调用
 */
@FeignClient(value = "search",configuration = {MultipartSupportConfig.class},fallbackFactory =SearchServiceClientFallbackFactory.class )
public interface SearchServiceClient {
    @PostMapping("/search/index/course")
    Boolean add(@RequestBody CourseIndex courseIndex);
}
